﻿using System;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApp2
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            #region 废弃代码
            //List<Person> people = new List<Person>();
            //for (int i = 0; i <= 100; i++)
            //{
            //    people.Add(new Person() { Id = i, Name = "Alice", Age = i });
            //}

            //this.DataContext = new
            //{
            //    GridModelList = people
            //};
            #endregion
        }
    }
    #region 废弃代码2
    //public class Person
    //{
    //    public int Id { get; set; }
    //    public string Name { get; set; }
    //    public int Age { get; set; }
    //}
    #endregion
}